names = ["小红","小明","小兰","小黄"]
print(names[1],names[2])
print(names[1:3])
print(names[0:3])
print(names[:3])
print(names[-3:-1])
print(names[-3:])
a = [1,2,3,4,3,2,1]
print(a.count(4))
